using System;
using System.Collections.Generic;
using System.Text;
using Objects;
using DAL;
namespace BAL
{
    public class BALDangKy
    {
        BALDangKy _dal;
        public BALDangKy()
        {
            _dal = new BALDangKy();
        }

        public static DangKy GetById(int id)
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.GetById(id);
        }

        public static DangKy GetByIdKhachHang(int idKhachHang)
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.GetByIdKhachHang(idKhachHang);
        }

        public static DangKy GetMaxId()
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.GetMaxId();
        }

        public static DangKy GetByMaThanhToan(string MaThanhToan)
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.GetByMaThanhToan(MaThanhToan);
        }

        public static int Insert(DangKy Item)
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.Insert(Item);
        }

        public static int Update(DangKy Item)
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.Update(Item);
        }

        public static int Update_MaThanhToan(DangKy Item)
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.Update_MaThanhToan(Item);
        }


        public static int Update_Update_PhuongThucThanhToan(DangKy Item)
        {
            DALDangKy _dal = new DALDangKy();
            return _dal.Update_PhuongThucThanhToan(Item);
        }

    }
}
